summaryrefslogtreecommitdiff
path: root/app/[lng]/evcp/(evcp)/evaluation/page.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'app/[lng]/evcp/(evcp)/evaluation/page.tsx')
-rw-r--r--app/[lng]/evcp/(evcp)/evaluation/page.tsx19
1 files changed, 3 insertions, 16 deletions
diff --git a/app/[lng]/evcp/(evcp)/evaluation/page.tsx b/app/[lng]/evcp/(evcp)/evaluation/page.tsx
index 3ae3272a..ead61077 100644
--- a/app/[lng]/evcp/(evcp)/evaluation/page.tsx
+++ b/app/[lng]/evcp/(evcp)/evaluation/page.tsx
@@ -17,6 +17,8 @@ import {
import { Button } from "@/components/ui/button"
import { Badge } from "@/components/ui/badge"
import { PeriodicEvaluationsTable } from "@/lib/evaluation/table/evaluation-table"
+import { getPeriodicEvaluations } from "@/lib/evaluation/service"
+import { searchParamsEvaluationsCache } from "@/lib/evaluation/validation"
export const metadata: Metadata = {
title: "협력업체 정기평가",
@@ -93,25 +95,11 @@ function getDefaultEvaluationYear() {
return new Date().getFullYear()
}
-function searchParamsPeriodicEvaluationsCache() {
- // TODO: 실제 파서 구현
- return {
- parse: (params: any) => params
- }
-}
-async function getPeriodicEvaluations(params: any) {
- // TODO: 실제 API 호출 구현
- return {
- data: [],
- total: 0,
- pageCount: 0
- }
-}
export default async function PeriodicEvaluationsPage(props: PeriodicEvaluationsPageProps) {
const searchParams = await props.searchParams
- const search = searchParamsPeriodicEvaluationsCache().parse(searchParams)
+ const search = searchParamsEvaluationsCache.parse(searchParams)
const validFilters = getValidFilters(search.filters || [])
// 기본 필터 처리
@@ -150,7 +138,6 @@ export default async function PeriodicEvaluationsPage(props: PeriodicEvaluations
<Badge variant="outline" className="text-sm">
{currentEvaluationYear}년도
</Badge>
- <ProcessGuidePopover />
</div>
</div>
</div>